import java.util.ArrayList;

//small
public class Manet extends Pet {


	public Manet(String petName, int petXP, int petDamageTaken, int petDef, int petStr, int petSpd, int petSize, ArrayList<AttackName> petAttacks) {	//sparade stats
		super(petName, "Manet är något av havets biffkrim. Favorit maträtt: Blåval.", Type.Water, petXP, petDamageTaken, petDef, petStr, petSpd, petSize, petAttacks,"/petsPictures/manetFront.gif","/petsPictures/manetBack.gif");

	}
 
	public Manet(String petName, int petExp) {

		super(petName, "Manet är något av havets biffkrim. Favorit maträtt: Blåval.", Type.Water, petExp, 13, 13, 8, 361, new Manet().startingAttacks(petExp), "/petsPictures/manetFront.gif","/petsPictures/manetBack.gif");
	}

	public Manet(){
		super();
	}
	
	public ArrayList<AttackName> startingAttacks(int exp) {
		int xp = exp;
		ArrayList<AttackName> attacks = new ArrayList<AttackName>();
		
		if (xp == -1){
			return attacks;
		}
		
		if(xp<100){
		attacks.add(AttackName.Spotta);
		return attacks;
		}
		else if(xp < 200){
		attacks.add(AttackName.Spotta);
		attacks.add(AttackName.VattenIÖgat);
		return attacks;
		}
		else if(xp<400){
			attacks.add(AttackName.Spotta);
			attacks.add(AttackName.VattenIÖgat);
			attacks.add(AttackName.VattenKanon);
			return attacks;
		}
		else if(xp<600){
			attacks.add(AttackName.Spotta);
			attacks.add(AttackName.VattenIÖgat);
			attacks.add(AttackName.VattenKanon);
			attacks.add(AttackName.Bubbelpool);
			return attacks;
		}
		else if(xp<800){
			attacks.add(AttackName.Spotta);
			attacks.add(AttackName.Strömvirvel);
			attacks.add(AttackName.VattenKanon);
			attacks.add(AttackName.Bubbelpool);
			return attacks;
		}
		else{
			attacks.add(AttackName.Spotta);
			attacks.add(AttackName.Strömvirvel);
			attacks.add(AttackName.VattenKanon);
			attacks.add(AttackName.Tsunami);
			return attacks;
		}
	}
	public Pet copy() {
		Manet duplicate = new Manet(name, currentXP, damageTaken, defense, strength, speed, size, attacks);
		duplicate.energy = energy;
		return duplicate;
	}
	public Pet copy(int exp) {
		Manet duplicate = new Manet(name, exp);
		duplicate.energy = energy;
		return duplicate;
	}
}
	
